package com.hxzy.controller.vue.product.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author wy
 * @Description 批量上架和下架商品
 * @Date 2023/9/20 17:35
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class BatchUpOrDownReq {

    @NotBlank(message = "上架状态不能为空")
    private String isgrounding;

    @NotNull(message = "商品不能为空")
    @Size(min = 1,message = "商品不能为空")
    private List<Long> ids;
}
